<?php

declare (strict_types=1);

namespace app\common\model;

use app\common\model\CommonModel;

/**
 * @mixin \think\Model
 */
class MiniappFreeModel extends CommonModel
{
    protected  $name = 'miniapp_free';
    protected  $pk   = 'free_id';

    public function getCodeTypeMeansAttr($value,$data)
    {
        if($data['code_type'] == 1) return '统一社会信用代码';
        if($data['code_type'] == 2) return  '组织机构代码';
        return  '营业执照注册号';
    }

    public function getStatusMeansAttr($value,$data)
    {
        if($data['status']==1) return '审核通过';
        if($data['status']==0) return '待审核';
        return '审核失败';
    }
}